package com.zhang.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.zhang.common.chart.PieChartData;
import com.zhang.system.entity.AdminUser;
import com.zhang.system.entity.UserSearch;
import com.zhang.system.vo.AdminUserCompositionStatisticVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 系统用户表 Mapper 接口
 * </p>
 *
 * @author 战神
 * @since 2023-07-02
 */
@Mapper
public interface AdminUserMapper extends BaseMapper<AdminUser> {
    /**
     * 得到用户详细信息
     *
     * @param userId 用户id
     * @return {@link AdminUser}
     */
    AdminUser getAdminUserInfo(Long userId);

    /**
     * 搜索用户
     *
     * @param userSearch 用户搜索
     * @return {@link List}<{@link AdminUser}>
     */
    List<AdminUser> userSeach(UserSearch userSearch);

    List<PieChartData> userGenderStatistic();
}
